﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005BB RID: 1467
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FinishTalkMissionScRsp : IMessage<FinishTalkMissionScRsp>, IMessage, IEquatable<FinishTalkMissionScRsp>, IDeepCloneable<FinishTalkMissionScRsp>, IBufferMessage
	{
		// Token: 0x170012C9 RID: 4809
		// (get) Token: 0x060041F2 RID: 16882 RVA: 0x000B4133 File Offset: 0x000B2333
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FinishTalkMissionScRsp> Parser
		{
			get
			{
				return FinishTalkMissionScRsp._parser;
			}
		}

		// Token: 0x170012CA RID: 4810
		// (get) Token: 0x060041F3 RID: 16883 RVA: 0x000B413A File Offset: 0x000B233A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FinishTalkMissionScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170012CB RID: 4811
		// (get) Token: 0x060041F4 RID: 16884 RVA: 0x000B414C File Offset: 0x000B234C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FinishTalkMissionScRsp.Descriptor;
			}
		}

		// Token: 0x060041F5 RID: 16885 RVA: 0x000B4153 File Offset: 0x000B2353
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishTalkMissionScRsp()
		{
		}

		// Token: 0x060041F6 RID: 16886 RVA: 0x000B4174 File Offset: 0x000B2374
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishTalkMissionScRsp(FinishTalkMissionScRsp other) : this()
		{
			this.customValueList_ = other.customValueList_.Clone();
			this.subMissionId_ = other.subMissionId_;
			this.retcode_ = other.retcode_;
			this.talkStr_ = other.talkStr_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060041F7 RID: 16887 RVA: 0x000B41CD File Offset: 0x000B23CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishTalkMissionScRsp Clone()
		{
			return new FinishTalkMissionScRsp(this);
		}

		// Token: 0x170012CC RID: 4812
		// (get) Token: 0x060041F8 RID: 16888 RVA: 0x000B41D5 File Offset: 0x000B23D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MissionCustomValue> CustomValueList
		{
			get
			{
				return this.customValueList_;
			}
		}

		// Token: 0x170012CD RID: 4813
		// (get) Token: 0x060041F9 RID: 16889 RVA: 0x000B41DD File Offset: 0x000B23DD
		// (set) Token: 0x060041FA RID: 16890 RVA: 0x000B41E5 File Offset: 0x000B23E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SubMissionId
		{
			get
			{
				return this.subMissionId_;
			}
			set
			{
				this.subMissionId_ = value;
			}
		}

		// Token: 0x170012CE RID: 4814
		// (get) Token: 0x060041FB RID: 16891 RVA: 0x000B41EE File Offset: 0x000B23EE
		// (set) Token: 0x060041FC RID: 16892 RVA: 0x000B41F6 File Offset: 0x000B23F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170012CF RID: 4815
		// (get) Token: 0x060041FD RID: 16893 RVA: 0x000B41FF File Offset: 0x000B23FF
		// (set) Token: 0x060041FE RID: 16894 RVA: 0x000B4207 File Offset: 0x000B2407
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string TalkStr
		{
			get
			{
				return this.talkStr_;
			}
			set
			{
				this.talkStr_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x060041FF RID: 16895 RVA: 0x000B421A File Offset: 0x000B241A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FinishTalkMissionScRsp);
		}

		// Token: 0x06004200 RID: 16896 RVA: 0x000B4228 File Offset: 0x000B2428
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FinishTalkMissionScRsp other)
		{
			return other != null && (other == this || (this.customValueList_.Equals(other.customValueList_) && this.SubMissionId == other.SubMissionId && this.Retcode == other.Retcode && !(this.TalkStr != other.TalkStr) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004201 RID: 16897 RVA: 0x000B429C File Offset: 0x000B249C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.customValueList_.GetHashCode();
			if (this.SubMissionId != 0U)
			{
				num ^= this.SubMissionId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.TalkStr.Length != 0)
			{
				num ^= this.TalkStr.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004202 RID: 16898 RVA: 0x000B431D File Offset: 0x000B251D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004203 RID: 16899 RVA: 0x000B4325 File Offset: 0x000B2525
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004204 RID: 16900 RVA: 0x000B4330 File Offset: 0x000B2530
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.customValueList_.WriteTo(ref output, FinishTalkMissionScRsp._repeated_customValueList_codec);
			if (this.TalkStr.Length != 0)
			{
				output.WriteRawTag(90);
				output.WriteString(this.TalkStr);
			}
			if (this.SubMissionId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.SubMissionId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004205 RID: 16901 RVA: 0x000B43BC File Offset: 0x000B25BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.customValueList_.CalculateSize(FinishTalkMissionScRsp._repeated_customValueList_codec);
			if (this.SubMissionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SubMissionId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.TalkStr.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.TalkStr);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004206 RID: 16902 RVA: 0x000B4444 File Offset: 0x000B2644
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FinishTalkMissionScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.customValueList_.Add(other.customValueList_);
			if (other.SubMissionId != 0U)
			{
				this.SubMissionId = other.SubMissionId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.TalkStr.Length != 0)
			{
				this.TalkStr = other.TalkStr;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004207 RID: 16903 RVA: 0x000B44BE File Offset: 0x000B26BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004208 RID: 16904 RVA: 0x000B44C8 File Offset: 0x000B26C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 90U)
				{
					if (num == 42U)
					{
						this.customValueList_.AddEntriesFrom(ref input, FinishTalkMissionScRsp._repeated_customValueList_codec);
						continue;
					}
					if (num == 90U)
					{
						this.TalkStr = input.ReadString();
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.SubMissionId = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040019E5 RID: 6629
		private static readonly MessageParser<FinishTalkMissionScRsp> _parser = new MessageParser<FinishTalkMissionScRsp>(() => new FinishTalkMissionScRsp());

		// Token: 0x040019E6 RID: 6630
		private UnknownFieldSet _unknownFields;

		// Token: 0x040019E7 RID: 6631
		public const int CustomValueListFieldNumber = 5;

		// Token: 0x040019E8 RID: 6632
		private static readonly FieldCodec<MissionCustomValue> _repeated_customValueList_codec = FieldCodec.ForMessage<MissionCustomValue>(42U, MissionCustomValue.Parser);

		// Token: 0x040019E9 RID: 6633
		private readonly RepeatedField<MissionCustomValue> customValueList_ = new RepeatedField<MissionCustomValue>();

		// Token: 0x040019EA RID: 6634
		public const int SubMissionIdFieldNumber = 12;

		// Token: 0x040019EB RID: 6635
		private uint subMissionId_;

		// Token: 0x040019EC RID: 6636
		public const int RetcodeFieldNumber = 14;

		// Token: 0x040019ED RID: 6637
		private uint retcode_;

		// Token: 0x040019EE RID: 6638
		public const int TalkStrFieldNumber = 11;

		// Token: 0x040019EF RID: 6639
		private string talkStr_ = "";
	}
}
